package com.example.blindinterfacetest;

import android.media.AudioManager;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class Welcome extends Activity{
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        
        //Gıve music volume control to volume buttons when app is in front
        setVolumeControlStream(AudioManager.STREAM_MUSIC);
        
        //Maximize volume
        AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
        audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_blind_interface_test, menu);
        return true;
    }

    
	public void onClickVisualMode(View v){
		startActivity(new Intent(this,VisualHome.class));
		finish();
	}
}
